import Layout from '@/layout'

const distributorPresaleRouter = {
  path: '/distributor/presale',
  component: Layout,
  redirect: 'noRedirect',
  alwaysShow: true,
  name: 'DistributorPresale',
  meta: {
    title: '预售管理',
    roles: ['distributor', 'admin']
  },
  children: [
    {
      path: 'order',
      component: () => import('@/views/distributor/presale/order-list'),
      name: 'DistributorPresaleOrder',
      meta: { title: '预售订单(TBD)', noCache: false }
    },
    {
      path: 'booking',
      component: () => import('@/views/distributor/presale/booking-list'),
      name: 'DistributorPresaleBooking',
      meta: { title: '预售下单(TBD)', noCache: false }
    }
  ]
}

export default distributorPresaleRouter
